/*RS/+ugl+mELVZ3oAefFzRglF28eK9CJHQ89PYvF8P7CM0hUZ8hC0Bti9Q94DzaLW*/
/*******************************
 * 转固单常量
 ******************************/
import ampub from 'ampub';
const { commonConst } = ampub;
const { CommonKeys } = commonConst;
const { IBusiRoleConst } = CommonKeys;

//转固单参照过滤（直接copy 转固单的参照过滤即可）
export const ReferConfig = {
    specialFields: {
        pk_asset_user: {
            //使用人
            orgMulti: 'pk_org',
            data: [
                {
                    fields: [ 'pk_equiporg', 'pk_org' ],
                    returnName: 'pk_org'
                },
                {
                    returnConst: IBusiRoleConst.ASSETORG,
                    returnName: 'busifuncode'
                }
            ]
        },
        // 工程项目
        pk_project: {
            orgMulti: 'pk_org',
            data: [
                {
                    fields: [ 'pk_org' ],
                    returnName: 'pk_org'
                }
            ]
        },
        // 工程项目
        pk_sub_project: {
            orgMulti: 'pk_org',
            data: [
                {
                    fields: [ 'pk_org' ],
                    returnName: 'pk_org'
                }
            ]
        },
        // 供应商
        pk_supplier: {
            orgMulti: 'pk_org',
            data: [
                {
                    fields: [ 'pk_org' ],
                    returnName: 'pk_org'
                }
            ]
        }
    },
};

/*RS/+ugl+mELVZ3oAefFzRglF28eK9CJHQ89PYvF8P7CM0hUZ8hC0Bti9Q94DzaLW*/